<?php
/**
 * Created by Zend Studio.
 * User: FDG348
 * Date: 2017/11/06
 * Time: 16:45
 */
namespace common\models;

use yii\db\ActiveRecord;

class CouponPlus extends ActiveRecord{
    public static function tableName(){
        return '{{%coupon_plus}}';
    }

    /**
     * @获取创建人
     */
    public function getCreator(){
        $userInfo = \common\helps\tools::getloginUserInfo();
        if($userInfo){
            $userName = $userInfo->userName;
        }else{
            $userName = '';
        }
        return $userName;
    }
}